package com.tsmti.doctor.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.tsmti.core.common.controller.BaseController;
import com.tsmti.core.common.query.data.Page;
import com.tsmti.core.common.query.data.PageImpl;
import com.tsmti.core.common.query.data.PageJson;
import com.tsmti.core.util.ConvertUtil;
import com.tsmti.core.util.StringUtils;
import com.tsmti.util.WebserviceUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zjn on 2018/11/15.
 */
@Controller
@RequestMapping("/doctor/helper")
public class HelperController extends BaseController {


    /**
     * 相关申请记录与结果列表
     * @param request
     * @param response
     * @throws Exception
     */
    @RequestMapping(value = "/getPatientList" , method = RequestMethod.GET)
    @ResponseBody
    public void getPatientList( HttpServletRequest request, HttpServletResponse response) throws Exception{
        List list = new ArrayList();
        PageJson pageJson = new PageJson(list);
        String content = JSON.toJSONString(pageJson, SerializerFeature.DisableCircularReferenceDetect);
        StringUtils.printJson(response, content);
    }

}
